package com.morehair.bean.vo.admin;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.morehair.bean.pojo.AttributeOfGoods;
import com.morehair.bean.pojo.SpecificationOfGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Description:
 * Date: 2021/6/7
 * Time: 14:23
 * author: zhang wei
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DetailOfGoodsVo {

    private List<Long> categoryIds;

    private GoodsVo goods;

    private List<AttributeOfGoods> attributes;

    private List<SpecificationOfGoods> specifications;

    private List<Products> products;


    @Data
    public static class Products {

        private Integer id;

        private Integer goodsId;

        private List<String> specifications;

        private BigDecimal price;

        private Integer number;

        private String url;

        private Date addTime;

        private Date updateTime;

        private Boolean deleted;

    }
}
